package com.yntsoft.entity;

import java.io.Serializable;

public class User  implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = -669679182282397549L;

	private Integer id;//主键

    private String userName;//登录名 

    private String password;//密码

    private String address;//地址 

    private String mail;//邮箱

    private Integer userType;//用户类型

    private String salt;//密码盐

    private String phone;//电话

    private Integer isLock;//是否锁定
    public final static Integer IS_LOCK_1=1;//锁定
    public final static Integer IS_LOCK_2=2;//正常

    private String realName;//用户真实名称
    
    private String roles;//用户拥有的角色

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail == null ? null : mail.trim();
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt == null ? null : salt.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Integer getIsLock() {
        return isLock;
    }

    public void setIsLock(Integer isLock) {
        this.isLock = isLock;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName == null ? null : realName.trim();
    }

	public String getRoles() {
		return roles;
	}

	public void setRoles(String roles) {
		this.roles = roles;
	}
}